package com.stake.entity;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.Unique;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class ActiveUser implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L; 

	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
	
	@Persistent
	@Unique(name="USERNAME_IDX")
	private String activeUser;
	
	@Persistent
	private Long lastTimeStampMillis;

	/**
	 * @return the key
	 */
	public Key getKey() {
		return key;
	}

	/**
	 * @param key the key to set
	 */
	public void setKey(Key key) {
		this.key = key;
	}

	/**
	 * @return the activeUser
	 */
	public String getActiveUser() {
		return activeUser;
	}

	/**
	 * @param activeUser the activeUser to set
	 */
	public void setActiveUser(String activeUser) {
		this.activeUser = activeUser;
	}

	/**
	 * @return the lastTimeStampMillis
	 */
	public Long getLastTimeStampMillis() {
		return lastTimeStampMillis;
	}

	/**
	 * @param lastTimeStampMillis the lastTimeStampMillis to set
	 */
	public void setLastTimeStampMillis(Long lastTimeStampMillis) {
		this.lastTimeStampMillis = lastTimeStampMillis;
	}

}
